home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / FileExists.au3 < prev    next >
Text File  |  2007-09-08  |  405b  |  18 lines

  1. If FileExists("C:\autoexec.bat") Then
  2.     MsgBox(4096, "C:\autoexec.bat File", "Exists")
  3. Else
  4.     MsgBox(4096,"C:\autoexec.bat File", "Does NOT exists")
  5. EndIf
  6.  
  7. If FileExists("C:\") Then
  8.     MsgBox(4096, "C:\ Dir ", "Exists")
  9. Else
  10.     MsgBox(4096,"C:\ Dir" , "Does NOT exists")
  11. EndIf
  12.  
  13. If FileExists("D:") Then
  14.     MsgBox(4096, "D: Drive", "Exists")
  15. Else
  16.     MsgBox(4096,"D: Drive", "Does NOT exists")
  17. EndIf
  18.